package com.headwind.upload.service;

import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;

import java.io.File;

/**
 * @author : Headwind
 * @version : 1.0
 * @date : Created in 2020/8/12
 * @description : 文件上传接口
 */
public interface UploadService {
    /**
     * 文件上传接口方法
     *
     * @param file 文件
     * @return 文件上传应答
     * @throws QiniuException 异常信息
     */
    Response uploadFile(File file) throws QiniuException;
}
